package com.shigu.trade.enums;

public enum PayWay {
    WALLET(1,"余额支付"),
    WXPAY(2,"微信支付"),
    VOUCHER(3,"抵用券");

    public static PayWay selByValue(int value){
        for(PayWay pt: PayWay.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }


    PayWay(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    }
